package org.simtube.util;

public class TermTFIDF {
	private int termIndex; //璇嶉」绱㈠紩
	private double tf; //璇嶉」鍦ㄦ枃妗ｄ腑鐨勮瘝棰�
	private double idf; //璇嶉」鍦ㄦ墍鏈夋枃妗ｄ腑鐨刬df
	
	public TermTFIDF(int termIndex, double tf, double idf){
		this.termIndex = termIndex;
		this.tf = tf;
		this.idf = idf;
	}
	
	public int getTermIndex(){
		return termIndex;
	}
	public double getTF(){
		return tf;
	}
	public double getIDF(){
		return idf;
	}
	public void setTF(double tf) {
		this.tf = tf;
	}

	public void setIDF(double idf) {
		this.idf = idf;
	}

	public double getTFIDF(){
		return tf*idf;
	}
}
